/*
 * =============================================================================
 *
 *       Filename:  1130.c
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  08/20/2010 06:05:48 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Richard Ma (richard_ma), richard.ma.19850509@gmail.com
 *        Company:  Feng Huli Primary School
 *
 * =============================================================================
 */

#include	<stdlib.h>
#include	<stdio.h>

/* 
 * ===  FUNCTION  ==============================================================
 *         Name:  main
 *  Description:  
 * =============================================================================
 */
int main ( int argc, char *argv[] )
{
    int n, t, i, j, k, flg;

    scanf("%d %d", &t, &n);

    flg = 0;
    for (i=0; i<=n/50; i++) {
        for (j=0; j<=(n-i*50)/20; j++) {
            for (k=0; k<=n-i*50-j*20; k++) {
                if (i*50+j*20+k == n && i+j+k == t) {
                    printf("%d,%d,%d\n", i, j, k);
                    flg = 1;
                }
            }
        }
    }

    if (0 == flg) printf("No output.\n");

    return EXIT_SUCCESS;
}				/* ----------  end of function main  ---------- */
